package cn.ondraw.ragflow.pojo.response;


import lombok.Data;

import java.util.List;

/**
 * 列出文档的响应对象
 */
@Data
public class ListDocumentsResponse {
    private int code;
    private DataWrapper data;

    @Data
    public static class DataWrapper {
        private List<Document> docs;
        private int total;
    }

    @Data
    public static class Document {
        private int chunk_count;
        private String create_date;
        private long create_time;
        private String created_by;
        private String id;
        private String knowledgebase_id;
        private String location;
        private String name;
        private ParserConfig parser_config;
        private String chunk_method;
        private Object process_begin_at;
        private double process_duation;
        private double progress;
        private String progress_msg;
        private String run;
        private int size;
        private String source_type;
        private String status;
        private Object thumbnail;
        private int token_count;
        private String type;
        private String update_date;
        private long update_time;
    }
}
